﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using SGLisp;

public class UnitEvent : TriggerEvent
{
    string UnitEventName; 
    public override void OnLoad(List<ASTNode> args)
    {
      this.UnitEventName = ((StringNode)args[1]).Val;
      base.OnLoad(args);
    }

    public override bool EventCondition(Hashtable argDic)
    {
        if (((StringNode)argDic["event-name"]).Val == this.UnitEventName)
        {
            return true;
        }
        return false;
    }
}
